/**
 * 常量定义
 */
const path = require('path');

const PORT = 7283;

// 项目根目录
const PROJECTS_DIR = path.join(__dirname, '../../projects');
const PROJECTS_INDEX = path.join(PROJECTS_DIR, 'projects.json');

// 数据文件路径
const USER_ACCOUNTS_FILE = path.join(__dirname, '../user-accounts.json');
const ADMIN_ACCOUNTS_FILE = path.join(__dirname, '../admin-accounts.json');
const CONFIG_FILE = path.join(__dirname, '../config.json');

module.exports = {
    PORT,
    PROJECTS_DIR,
    PROJECTS_INDEX,
    USER_ACCOUNTS_FILE,
    ADMIN_ACCOUNTS_FILE,
    CONFIG_FILE
};

